package week2

import "fmt"

type errorString2 struct {
	s string
}

func (e errorString2) Error() string {
	return e.s
}

func NewError(text string) error {
	return errorString2{text}
}
var ErrType = NewError("EOF")

func T2(){
	if ErrType == NewError("EOF"){
		fmt.Println(ErrType)
	}
}
